package com.tzm.gaflow.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * ga_flow_main(业务主日志)
 * </p>
 *
 * @author tzm
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GaFlowMain", description = "ga_flow_main(业务主日志)")
@TableName("ga_flow_main")
public class GaFlowMain extends Model<GaFlowMain> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务日志ID")
    @TableId(value = "bussines_main_id", type = IdType.ASSIGN_UUID)
    private String bussinesMainId;

    @ApiModelProperty(value = "业务流程ID")
    @TableField("flow_id")
    private String flowId;

    @ApiModelProperty(value = "业务流程名称")
    @TableField("flow_name")
    private String flowName;

    @ApiModelProperty(value = "业务类型")
    @TableField("bussines_type")
    private String bussinesType;

    @ApiModelProperty(value = "业务主键")
    @TableField("bussines_key")
    private String bussinesKey;

    @ApiModelProperty(value = "上一步流程ID")
    @TableField(value = "previous_flow_id", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String previousFlowId;

    @ApiModelProperty(value = "上一步流程名称")
    @TableField(value = "previous_flow_name", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String previousFlowName;

    @ApiModelProperty(value = "下一步流程ID")
    @TableField(value = "next_flow_id", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String nextFlowId;

    @ApiModelProperty(value = "下一步流程名称")
    @TableField(value = "next_flow_name", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private String nextFlowName;

    @ApiModelProperty(value = "经办人")
    @TableField("handle_man")
    private String handleMan;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "复核人")
    @TableField("audit_man")
    private String auditMan;

    @ApiModelProperty(value = "复核标志")
    @TableField("audit_flag")
    private String auditFlag;

    @ApiModelProperty(value = "申请办理日期")
    @TableField("apply_time")
    private Date applyTime;

    @ApiModelProperty(value = "开始办理日期")
    @TableField("handle_time")
    private Date handleTime;

    @ApiModelProperty(value = "办理完成日期")
    @TableField("complete_time")
    private Date completeTime;

    @ApiModelProperty(value = "待办人")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "任务状态")
    @TableField("task_state")
    private String taskState;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "待办原因")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "是否已经被业务回退0 否，1是 ")
    @TableField("back_flag")
    private String backFlag;


}
